@charset "utf-8";

/* 初始化input */
.input-init {
	border: none;
    outline: none;
	background-color: transparent;
}

/* 初始化button	 */
.button-init {
	border: none;
}

/* 单行 - 文本省略 */
.ellipsis {
  overflow: hidden;          /* 隐藏溢出 */
  text-overflow: ellipsis;   /* 用 ... 代替 */
  white-space: nowrap;       /* 强制不换行 */
  word-break: break-all;     /* 可选：英文单词也允许截断 */
}

/* 多行 - 文本省略 */
.ellipsis-2 {
  display: -webkit-box;      /* 必须 */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;     /* 想保留几行就写几 */
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;   /* 最后一行尾部 ... */
  word-break: break-all;
}

.scroll-row {
	min-width: 100%;
	white-space: nowrap;
}

.scroll-row-item {
	display: inline-block !important;
}

/* 隐藏 */
.overflow-hidden {
	overflow: hidden;
}

.overflow-y-auto {
	overflow-y: auto;
}

/* 定位 */
.pos-r {
	position: relative;
}

.pos-f {
	position: fixed;
}

.pos-a {
	position: absolute;
}

.pos-s {
	position: sticky;
}

/* 清除浮动 */
.clearfix {
	zoom: 1;
}

.clearfix:after {
	clear: both;
	display: block;
	visibility: hidden;
	content: "";
	height: 0;
}

/* 设置字体大小 */
.font-large {
	font-size: 40px;
}

.font-smaller {
	font-size: 32px;
}

.font-small {
	font-size: 16px;
}

.font-mini {
	font-size: 12px;
}

.font-11 {
	font-size: 11px;
}

/* 字体加粗 */
.font-bold {
	font-weight: bold;
}

.font-bold-normal {
    font-weight: normal;
}

/* 禁止字体换行 */
.text-nowrap {
    white-space: nowrap;
}

/* 允许文字换行 */
.text-wrap {
	white-space: normal;
}

/* 内外边距 */
.mar-0-auto {
	margin: 0 auto;
}

.mar-x-auto {
	margin-left: auto;
	margin-right: auto;
}

.mar-l-auto {
	/* 居右 */
	margin-left: auto;
}

/* flex 布局 */
.dis-block {
	display: block;
}

.flex {
	/* #ifndef APP-PLUS-NVUE */
	display: flex;
	/* #endif */
	flex-direction: row;
}

.flex-row {
	flex-direction: row !important;
}

.flex-column {
	flex-direction: column !important;
}

.flex-row-reverse {
	flex-direction: row-reverse !important;
}

.flex-column-reverse {
	flex-direction: column-reverse !important;
}

.flex-wrap {
	flex-wrap: wrap;
}

.flex-nowrap {
	flex-wrap: nowrap;
}

.justify-start {
	justify-content: flex-start;
}

.justify-end {
	justify-content: flex-end;
}

.justify-between {
	justify-content: space-between;
}

.justify-around {
	justify-content: space-around;
}

.justify-evenly {
	justify-content: space-evenly;
}

.justify-center {
	justify-content: center;
}

.align-center {
	align-items: center;
}

.align-stretch {
	align-items: stretch;
}

.align-start {
	align-items: flex-start;
}

.align-end {
	align-items: flex-end;
}

.align-baseline {
	align-items: baseline;
}

/* #ifndef APP-PLUS-NVUE */
.content-start {
	align-content: flex-start;
}

.content-end {
	align-content: flex-end;
}

.content-center {
	align-content: center;
}

.content-between {
	align-content: space-between;
}

.content-around {
	align-content: space-around;
}

.content-stretch {
	align-content: stretch;
}

/* #endif */
.flex-1 {
	flex: 1;
}

.flex-2 {
	flex: 2;
}

.flex-3 {
	flex: 3;
}

.flex-4 {
	flex: 4;
}

.flex-5 {
	flex: 5;
}

.flex-6 {
	flex: 6;
}

.flex-7 {
	flex: 7;
}

/* #ifndef APP-PLUS-NVUE */
.flex-shrink {
	flex-shrink: 0;
}

/* #endif */

/* border */
.border {
	border: 1px #e6e6e6 solid;
}

.borderB {
	border-bottom: 1px solid #F1F3F6;
}

.border-none::after {
	border: none;
}

/* 圆角 */
.radius-50 {
	border-radius: 50%;
}

/* 文本居中 */
.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.text-left {
	text-align: left;
}

/* 文本省略 */
.text-ellipsis {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* 图片不变形 */
.img-normal {
	object-fit: cover;
    flex-shrink: 0;
}

/* 删除下划线 */
.text-dec-none {
	text-decoration: none;
}

/* a标签链接 */
a {
	text-decoration: none;
	color: inherit;
}

a:hover {
	color: #1e80ff;
}

/* 打印 */
@media print {
	/* 去除浏览器默认页眉页脚 */
	@page {
		margin: 0 !important;
	}
	
	.noprint {
		display: none;
	}
}
